package org.example.page194.service.impl;

import org.example.page194.entity.User;
import org.example.page194.service.UserService;
import org.example.page194.dao.UserDAO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDAO userDAO;

    @Override
    public User getUserByUserName(String userName){
        return userDAO.getUserByUserName(userName);
    }
}
